package com.class05.e_final_var;

public class Test02 {
    public static void main(String[] args) {
        Person p = new Person("张三", 18);
        System.out.println(p.hashCode());
        p = new Person("李四", 20);
        System.out.println(p.hashCode());
        System.out.println(p.getName() + " " + p.getAge());


        final Person p1 = new Person("王五", 22);
//        p1 = new Person("赵六", 20);
        System.out.println(p1);
        p1.setName("赵六");
        p1.setAge(20);
        System.out.println(p1.getName() + " " + p1.getAge());
    }
}
